<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/24
 * Time: 16:02
 */
class business_infoModel extends Model{

    public function __construct(){
        parent::__construct('business_info');
    }

    public function getBusinessInfo($condition = array(), $field = '*'){
        return $this->table('business_info')->field($field)->where($condition)->find();
    }

    public function getBusinessInfoList($condition = array(), $field = '*', $order = 'area_id asc'){
        return $this->field($field)->where($condition)->order($order)->select();
    }

   public  function getBank_info($condition=array(),$field = '*'){

       return $this->table('bank_info')->field($field)->where($condition)->find();
   }

    public  function getBank_info_name($condition=array(),$field = '*'){

        return $this->table('bank_info')->field($field)->where($condition)->select();
    }
}